package com.seculab.admin.dao;

import java.util.List;

import org.apache.ibatis.session.RowBounds;
import org.apache.ibatis.session.SqlSessionFactory;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.stereotype.Repository;

@Repository
public class DefaultDAO extends SqlSessionTemplate {

	public DefaultDAO(SqlSessionFactory sqlSessionFactory) {
		super(sqlSessionFactory);
	}

	@Override
	public int delete(String statement, Object parameter) {
		return super.delete(statement, parameter);
	}

	@Override
	public int delete(String statement) {
		return super.delete(statement);
	}

	@Override
	public int insert(String statement, Object parameter) {
		return super.insert(statement, parameter);
	}

	@Override
	public List selectList(String statement, Object parameter,
			RowBounds rowBounds) {
		return super.selectList(statement, parameter, rowBounds);
	}

	@Override
	public List selectList(String statement, Object parameter) {
		return super.selectList(statement, parameter);
	}

	@Override
	public List selectList(String statement) {
		return super.selectList(statement);
	}

	@Override
	public Object selectOne(String statement, Object parameter) {
		return super.selectOne(statement, parameter);
	}

	@Override
	public Object selectOne(String statement) {
		return super.selectOne(statement);
	}

	@Override
	public int update(String statement, Object parameter) {
		return super.update(statement, parameter);
	}

	@Override
	public int update(String statement) {
		return super.update(statement);
	}

}
